package net.ddns.xcyyds.kungfu.procedures;

import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.entity.Entity;

public class QuanFa2Procedure {
	public static void execute(LevelAccessor world, double x, double y, double z, Entity entity) {
		if (entity == null)
			return;
		if ((entity.getPersistentData().getString("NO3")).equals("R") || (entity.getPersistentData().getString("NO3")).equals("L")) {
			QuanFa3Procedure.execute();
		} else {
			if ((entity.getPersistentData().getString("NO1")).equals("L") && (entity.getPersistentData().getString("NO2")).equals("L")) {
				LLaProcedure.execute(world, x, y, z, entity);
			}
			if ((entity.getPersistentData().getString("NO1")).equals("R") && (entity.getPersistentData().getString("NO2")).equals("R")) {
				RRaProcedure.execute(world, x, y, z, entity);
			}
			if ((entity.getPersistentData().getString("NO1")).equals("L") && (entity.getPersistentData().getString("NO2")).equals("R")) {
				LRaProcedure.execute(world, x, y, z, entity);
			}
			if ((entity.getPersistentData().getString("NO1")).equals("R") && (entity.getPersistentData().getString("NO2")).equals("L")) {
				RLaProcedure.execute(world, x, y, z, entity);
			}
		}
	}
}
